Integrand size = 15, antiderivative size = 92 \[ \int (a+b x)^4 (c+d x)^3 \, dx=\frac {(b c-a d)^3 (a+b x)^5}{5 b^4}+\frac {d (b c-a d)^2 (a+b x)^6}{2 b^4}+\frac {3 d^2 (b c-a d) (a+b x)^7}{7 b^4}+\frac {d^3 (a+b x)^8}{8 b^4} \]
1/5*(-a*d+b*c)^3*(b*x+a)^5/b^4+1/2*d*(-a*d+b*c)^2*(b*x+a)^6/b^4+3/7*d^2*(- a*d+b*c)*(b*x+a)^7/b^4+1/8*d^3*(b*x+a)^8/b^4
Leaf count is larger than twice the leaf count of optimal. \(217\) vs. \(2(92)=184\).
Time = 0.02 (sec) , antiderivative size = 217, normalized size of antiderivative = 2.36 \[ \int (a+b x)^4 (c+d x)^3 \, dx=a^4 c^3 x+\frac {1}{2} a^3 c^2 (4 b c+3 a d) x^2+a^2 c \left (2 b^2 c^2+4 a b c d+a^2 d^2\right ) x^3+\frac {1}{4} a \left (4 b^3 c^3+18 a b^2 c^2 d+12 a^2 b c d^2+a^3 d^3\right ) x^4+\frac {1}{5} b \left (b^3 c^3+12 a b^2 c^2 d+18 a^2 b c d^2+4 a^3 d^3\right ) x^5+\frac {1}{2} b^2 d \left (b^2 c^2+4 a b c d+2 a^2 d^2\right ) x^6+\frac {1}{7} b^3 d^2 (3 b c+4 a d) x^7+\frac {1}{8} b^4 d^3 x^8 \]
a^4*c^3*x + (a^3*c^2*(4*b*c + 3*a*d)*x^2)/2 + a^2*c*(2*b^2*c^2 + 4*a*b*c*d + a^2*d^2)*x^3 + (a*(4*b^3*c^3 + 18*a*b^2*c^2*d + 12*a^2*b*c*d^2 + a^3*d^ 3)*x^4)/4 + (b*(b^3*c^3 + 12*a*b^2*c^2*d + 18*a^2*b*c*d^2 + 4*a^3*d^3)*x^5 )/5 + (b^2*d*(b^2*c^2 + 4*a*b*c*d + 2*a^2*d^2)*x^6)/2 + (b^3*d^2*(3*b*c + 4*a*d)*x^7)/7 + (b^4*d^3*x^8)/8
Time = 0.29 (sec) , antiderivative size = 92, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.133, Rules used = {49, 2009}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int (a+b x)^4 (c+d x)^3 \, dx\) |
\(\Big \downarrow \) 49 |
\(\displaystyle \int \left (\frac {3 d^2 (a+b x)^6 (b c-a d)}{b^3}+\frac {3 d (a+b x)^5 (b c-a d)^2}{b^3}+\frac {(a+b x)^4 (b c-a d)^3}{b^3}+\frac {d^3 (a+b x)^7}{b^3}\right )dx\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle \frac {3 d^2 (a+b x)^7 (b c-a d)}{7 b^4}+\frac {d (a+b x)^6 (b c-a d)^2}{2 b^4}+\frac {(a+b x)^5 (b c-a d)^3}{5 b^4}+\frac {d^3 (a+b x)^8}{8 b^4}\) |
((b*c - a*d)^3*(a + b*x)^5)/(5*b^4) + (d*(b*c - a*d)^2*(a + b*x)^6)/(2*b^4 ) + (3*d^2*(b*c - a*d)*(a + b*x)^7)/(7*b^4) + (d^3*(a + b*x)^8)/(8*b^4)
3.13.59.3.1 Defintions of rubi rules used
Int[((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int [ExpandIntegrand[(a + b*x)^m*(c + d*x)^n, x], x] /; FreeQ[{a, b, c, d}, x] && IGtQ[m, 0] && IGtQ[m + n + 2, 0]
Leaf count of result is larger than twice the leaf count of optimal. \(221\) vs. \(2(84)=168\).
Time = 0.19 (sec) , antiderivative size = 222, normalized size of antiderivative = 2.41
method | result | size |
norman | \(\frac {b^{4} d^{3} x^{8}}{8}+\left (\frac {4}{7} a \,b^{3} d^{3}+\frac {3}{7} b^{4} c \,d^{2}\right ) x^{7}+\left (a^{2} b^{2} d^{3}+2 a \,b^{3} c \,d^{2}+\frac {1}{2} b^{4} c^{2} d \right ) x^{6}+\left (\frac {4}{5} a^{3} b \,d^{3}+\frac {18}{5} a^{2} b^{2} c \,d^{2}+\frac {12}{5} a \,b^{3} c^{2} d +\frac {1}{5} b^{4} c^{3}\right ) x^{5}+\left (\frac {1}{4} a^{4} d^{3}+3 a^{3} b c \,d^{2}+\frac {9}{2} a^{2} b^{2} c^{2} d +a \,b^{3} c^{3}\right ) x^{4}+\left (a^{4} c \,d^{2}+4 a^{3} b \,c^{2} d +2 a^{2} b^{2} c^{3}\right ) x^{3}+\left (\frac {3}{2} a^{4} c^{2} d +2 a^{3} c^{3} b \right ) x^{2}+a^{4} c^{3} x\) | \(222\) |
default | \(\frac {b^{4} d^{3} x^{8}}{8}+\frac {\left (4 a \,b^{3} d^{3}+3 b^{4} c \,d^{2}\right ) x^{7}}{7}+\frac {\left (6 a^{2} b^{2} d^{3}+12 a \,b^{3} c \,d^{2}+3 b^{4} c^{2} d \right ) x^{6}}{6}+\frac {\left (4 a^{3} b \,d^{3}+18 a^{2} b^{2} c \,d^{2}+12 a \,b^{3} c^{2} d +b^{4} c^{3}\right ) x^{5}}{5}+\frac {\left (a^{4} d^{3}+12 a^{3} b c \,d^{2}+18 a^{2} b^{2} c^{2} d +4 a \,b^{3} c^{3}\right ) x^{4}}{4}+\frac {\left (3 a^{4} c \,d^{2}+12 a^{3} b \,c^{2} d +6 a^{2} b^{2} c^{3}\right ) x^{3}}{3}+\frac {\left (3 a^{4} c^{2} d +4 a^{3} c^{3} b \right ) x^{2}}{2}+a^{4} c^{3} x\) | \(229\) |
gosper | \(\frac {1}{8} b^{4} d^{3} x^{8}+\frac {4}{7} x^{7} a \,b^{3} d^{3}+\frac {3}{7} x^{7} b^{4} c \,d^{2}+x^{6} a^{2} b^{2} d^{3}+2 x^{6} a \,b^{3} c \,d^{2}+\frac {1}{2} x^{6} b^{4} c^{2} d +\frac {4}{5} x^{5} a^{3} b \,d^{3}+\frac {18}{5} x^{5} a^{2} b^{2} c \,d^{2}+\frac {12}{5} x^{5} a \,b^{3} c^{2} d +\frac {1}{5} b^{4} c^{3} x^{5}+\frac {1}{4} x^{4} a^{4} d^{3}+3 x^{4} a^{3} b c \,d^{2}+\frac {9}{2} x^{4} a^{2} b^{2} c^{2} d +a \,b^{3} c^{3} x^{4}+a^{4} c \,d^{2} x^{3}+4 a^{3} b \,c^{2} d \,x^{3}+2 a^{2} b^{2} c^{3} x^{3}+\frac {3}{2} x^{2} a^{4} c^{2} d +2 a^{3} c^{3} b \,x^{2}+a^{4} c^{3} x\) | \(246\) |
risch | \(\frac {1}{8} b^{4} d^{3} x^{8}+\frac {4}{7} x^{7} a \,b^{3} d^{3}+\frac {3}{7} x^{7} b^{4} c \,d^{2}+x^{6} a^{2} b^{2} d^{3}+2 x^{6} a \,b^{3} c \,d^{2}+\frac {1}{2} x^{6} b^{4} c^{2} d +\frac {4}{5} x^{5} a^{3} b \,d^{3}+\frac {18}{5} x^{5} a^{2} b^{2} c \,d^{2}+\frac {12}{5} x^{5} a \,b^{3} c^{2} d +\frac {1}{5} b^{4} c^{3} x^{5}+\frac {1}{4} x^{4} a^{4} d^{3}+3 x^{4} a^{3} b c \,d^{2}+\frac {9}{2} x^{4} a^{2} b^{2} c^{2} d +a \,b^{3} c^{3} x^{4}+a^{4} c \,d^{2} x^{3}+4 a^{3} b \,c^{2} d \,x^{3}+2 a^{2} b^{2} c^{3} x^{3}+\frac {3}{2} x^{2} a^{4} c^{2} d +2 a^{3} c^{3} b \,x^{2}+a^{4} c^{3} x\) | \(246\) |
parallelrisch | \(\frac {1}{8} b^{4} d^{3} x^{8}+\frac {4}{7} x^{7} a \,b^{3} d^{3}+\frac {3}{7} x^{7} b^{4} c \,d^{2}+x^{6} a^{2} b^{2} d^{3}+2 x^{6} a \,b^{3} c \,d^{2}+\frac {1}{2} x^{6} b^{4} c^{2} d +\frac {4}{5} x^{5} a^{3} b \,d^{3}+\frac {18}{5} x^{5} a^{2} b^{2} c \,d^{2}+\frac {12}{5} x^{5} a \,b^{3} c^{2} d +\frac {1}{5} b^{4} c^{3} x^{5}+\frac {1}{4} x^{4} a^{4} d^{3}+3 x^{4} a^{3} b c \,d^{2}+\frac {9}{2} x^{4} a^{2} b^{2} c^{2} d +a \,b^{3} c^{3} x^{4}+a^{4} c \,d^{2} x^{3}+4 a^{3} b \,c^{2} d \,x^{3}+2 a^{2} b^{2} c^{3} x^{3}+\frac {3}{2} x^{2} a^{4} c^{2} d +2 a^{3} c^{3} b \,x^{2}+a^{4} c^{3} x\) | \(246\) |
1/8*b^4*d^3*x^8+(4/7*a*b^3*d^3+3/7*b^4*c*d^2)*x^7+(a^2*b^2*d^3+2*a*b^3*c*d ^2+1/2*b^4*c^2*d)*x^6+(4/5*a^3*b*d^3+18/5*a^2*b^2*c*d^2+12/5*a*b^3*c^2*d+1 /5*b^4*c^3)*x^5+(1/4*a^4*d^3+3*a^3*b*c*d^2+9/2*a^2*b^2*c^2*d+a*b^3*c^3)*x^ 4+(a^4*c*d^2+4*a^3*b*c^2*d+2*a^2*b^2*c^3)*x^3+(3/2*a^4*c^2*d+2*a^3*c^3*b)* x^2+a^4*c^3*x
Leaf count of result is larger than twice the leaf count of optimal. 225 vs. \(2 (84) = 168\).
Time = 0.21 (sec) , antiderivative size = 225, normalized size of antiderivative = 2.45 \[ \int (a+b x)^4 (c+d x)^3 \, dx=\frac {1}{8} \, b^{4} d^{3} x^{8} + a^{4} c^{3} x + \frac {1}{7} \, {\left (3 \, b^{4} c d^{2} + 4 \, a b^{3} d^{3}\right )} x^{7} + \frac {1}{2} \, {\left (b^{4} c^{2} d + 4 \, a b^{3} c d^{2} + 2 \, a^{2} b^{2} d^{3}\right )} x^{6} + \frac {1}{5} \, {\left (b^{4} c^{3} + 12 \, a b^{3} c^{2} d + 18 \, a^{2} b^{2} c d^{2} + 4 \, a^{3} b d^{3}\right )} x^{5} + \frac {1}{4} \, {\left (4 \, a b^{3} c^{3} + 18 \, a^{2} b^{2} c^{2} d + 12 \, a^{3} b c d^{2} + a^{4} d^{3}\right )} x^{4} + {\left (2 \, a^{2} b^{2} c^{3} + 4 \, a^{3} b c^{2} d + a^{4} c d^{2}\right )} x^{3} + \frac {1}{2} \, {\left (4 \, a^{3} b c^{3} + 3 \, a^{4} c^{2} d\right )} x^{2} \]
1/8*b^4*d^3*x^8 + a^4*c^3*x + 1/7*(3*b^4*c*d^2 + 4*a*b^3*d^3)*x^7 + 1/2*(b ^4*c^2*d + 4*a*b^3*c*d^2 + 2*a^2*b^2*d^3)*x^6 + 1/5*(b^4*c^3 + 12*a*b^3*c^ 2*d + 18*a^2*b^2*c*d^2 + 4*a^3*b*d^3)*x^5 + 1/4*(4*a*b^3*c^3 + 18*a^2*b^2* c^2*d + 12*a^3*b*c*d^2 + a^4*d^3)*x^4 + (2*a^2*b^2*c^3 + 4*a^3*b*c^2*d + a ^4*c*d^2)*x^3 + 1/2*(4*a^3*b*c^3 + 3*a^4*c^2*d)*x^2
Leaf count of result is larger than twice the leaf count of optimal. 243 vs. \(2 (80) = 160\).
Time = 0.04 (sec) , antiderivative size = 243, normalized size of antiderivative = 2.64 \[ \int (a+b x)^4 (c+d x)^3 \, dx=a^{4} c^{3} x + \frac {b^{4} d^{3} x^{8}}{8} + x^{7} \cdot \left (\frac {4 a b^{3} d^{3}}{7} + \frac {3 b^{4} c d^{2}}{7}\right ) + x^{6} \left (a^{2} b^{2} d^{3} + 2 a b^{3} c d^{2} + \frac {b^{4} c^{2} d}{2}\right ) + x^{5} \cdot \left (\frac {4 a^{3} b d^{3}}{5} + \frac {18 a^{2} b^{2} c d^{2}}{5} + \frac {12 a b^{3} c^{2} d}{5} + \frac {b^{4} c^{3}}{5}\right ) + x^{4} \left (\frac {a^{4} d^{3}}{4} + 3 a^{3} b c d^{2} + \frac {9 a^{2} b^{2} c^{2} d}{2} + a b^{3} c^{3}\right ) + x^{3} \left (a^{4} c d^{2} + 4 a^{3} b c^{2} d + 2 a^{2} b^{2} c^{3}\right ) + x^{2} \cdot \left (\frac {3 a^{4} c^{2} d}{2} + 2 a^{3} b c^{3}\right ) \]
a**4*c**3*x + b**4*d**3*x**8/8 + x**7*(4*a*b**3*d**3/7 + 3*b**4*c*d**2/7) + x**6*(a**2*b**2*d**3 + 2*a*b**3*c*d**2 + b**4*c**2*d/2) + x**5*(4*a**3*b *d**3/5 + 18*a**2*b**2*c*d**2/5 + 12*a*b**3*c**2*d/5 + b**4*c**3/5) + x**4 *(a**4*d**3/4 + 3*a**3*b*c*d**2 + 9*a**2*b**2*c**2*d/2 + a*b**3*c**3) + x* *3*(a**4*c*d**2 + 4*a**3*b*c**2*d + 2*a**2*b**2*c**3) + x**2*(3*a**4*c**2* d/2 + 2*a**3*b*c**3)
Leaf count of result is larger than twice the leaf count of optimal. 225 vs. \(2 (84) = 168\).
Time = 0.20 (sec) , antiderivative size = 225, normalized size of antiderivative = 2.45 \[ \int (a+b x)^4 (c+d x)^3 \, dx=\frac {1}{8} \, b^{4} d^{3} x^{8} + a^{4} c^{3} x + \frac {1}{7} \, {\left (3 \, b^{4} c d^{2} + 4 \, a b^{3} d^{3}\right )} x^{7} + \frac {1}{2} \, {\left (b^{4} c^{2} d + 4 \, a b^{3} c d^{2} + 2 \, a^{2} b^{2} d^{3}\right )} x^{6} + \frac {1}{5} \, {\left (b^{4} c^{3} + 12 \, a b^{3} c^{2} d + 18 \, a^{2} b^{2} c d^{2} + 4 \, a^{3} b d^{3}\right )} x^{5} + \frac {1}{4} \, {\left (4 \, a b^{3} c^{3} + 18 \, a^{2} b^{2} c^{2} d + 12 \, a^{3} b c d^{2} + a^{4} d^{3}\right )} x^{4} + {\left (2 \, a^{2} b^{2} c^{3} + 4 \, a^{3} b c^{2} d + a^{4} c d^{2}\right )} x^{3} + \frac {1}{2} \, {\left (4 \, a^{3} b c^{3} + 3 \, a^{4} c^{2} d\right )} x^{2} \]
1/8*b^4*d^3*x^8 + a^4*c^3*x + 1/7*(3*b^4*c*d^2 + 4*a*b^3*d^3)*x^7 + 1/2*(b ^4*c^2*d + 4*a*b^3*c*d^2 + 2*a^2*b^2*d^3)*x^6 + 1/5*(b^4*c^3 + 12*a*b^3*c^ 2*d + 18*a^2*b^2*c*d^2 + 4*a^3*b*d^3)*x^5 + 1/4*(4*a*b^3*c^3 + 18*a^2*b^2* c^2*d + 12*a^3*b*c*d^2 + a^4*d^3)*x^4 + (2*a^2*b^2*c^3 + 4*a^3*b*c^2*d + a ^4*c*d^2)*x^3 + 1/2*(4*a^3*b*c^3 + 3*a^4*c^2*d)*x^2
Leaf count of result is larger than twice the leaf count of optimal. 245 vs. \(2 (84) = 168\).
Time = 0.29 (sec) , antiderivative size = 245, normalized size of antiderivative = 2.66 \[ \int (a+b x)^4 (c+d x)^3 \, dx=\frac {1}{8} \, b^{4} d^{3} x^{8} + \frac {3}{7} \, b^{4} c d^{2} x^{7} + \frac {4}{7} \, a b^{3} d^{3} x^{7} + \frac {1}{2} \, b^{4} c^{2} d x^{6} + 2 \, a b^{3} c d^{2} x^{6} + a^{2} b^{2} d^{3} x^{6} + \frac {1}{5} \, b^{4} c^{3} x^{5} + \frac {12}{5} \, a b^{3} c^{2} d x^{5} + \frac {18}{5} \, a^{2} b^{2} c d^{2} x^{5} + \frac {4}{5} \, a^{3} b d^{3} x^{5} + a b^{3} c^{3} x^{4} + \frac {9}{2} \, a^{2} b^{2} c^{2} d x^{4} + 3 \, a^{3} b c d^{2} x^{4} + \frac {1}{4} \, a^{4} d^{3} x^{4} + 2 \, a^{2} b^{2} c^{3} x^{3} + 4 \, a^{3} b c^{2} d x^{3} + a^{4} c d^{2} x^{3} + 2 \, a^{3} b c^{3} x^{2} + \frac {3}{2} \, a^{4} c^{2} d x^{2} + a^{4} c^{3} x \]
1/8*b^4*d^3*x^8 + 3/7*b^4*c*d^2*x^7 + 4/7*a*b^3*d^3*x^7 + 1/2*b^4*c^2*d*x^ 6 + 2*a*b^3*c*d^2*x^6 + a^2*b^2*d^3*x^6 + 1/5*b^4*c^3*x^5 + 12/5*a*b^3*c^2 *d*x^5 + 18/5*a^2*b^2*c*d^2*x^5 + 4/5*a^3*b*d^3*x^5 + a*b^3*c^3*x^4 + 9/2* a^2*b^2*c^2*d*x^4 + 3*a^3*b*c*d^2*x^4 + 1/4*a^4*d^3*x^4 + 2*a^2*b^2*c^3*x^ 3 + 4*a^3*b*c^2*d*x^3 + a^4*c*d^2*x^3 + 2*a^3*b*c^3*x^2 + 3/2*a^4*c^2*d*x^ 2 + a^4*c^3*x
Time = 0.22 (sec) , antiderivative size = 208, normalized size of antiderivative = 2.26 \[ \int (a+b x)^4 (c+d x)^3 \, dx=x^4\,\left (\frac {a^4\,d^3}{4}+3\,a^3\,b\,c\,d^2+\frac {9\,a^2\,b^2\,c^2\,d}{2}+a\,b^3\,c^3\right )+x^5\,\left (\frac {4\,a^3\,b\,d^3}{5}+\frac {18\,a^2\,b^2\,c\,d^2}{5}+\frac {12\,a\,b^3\,c^2\,d}{5}+\frac {b^4\,c^3}{5}\right )+a^4\,c^3\,x+\frac {b^4\,d^3\,x^8}{8}+\frac {a^3\,c^2\,x^2\,\left (3\,a\,d+4\,b\,c\right )}{2}+\frac {b^3\,d^2\,x^7\,\left (4\,a\,d+3\,b\,c\right )}{7}+a^2\,c\,x^3\,\left (a^2\,d^2+4\,a\,b\,c\,d+2\,b^2\,c^2\right )+\frac {b^2\,d\,x^6\,\left (2\,a^2\,d^2+4\,a\,b\,c\,d+b^2\,c^2\right )}{2} \]
x^4*((a^4*d^3)/4 + a*b^3*c^3 + (9*a^2*b^2*c^2*d)/2 + 3*a^3*b*c*d^2) + x^5* ((b^4*c^3)/5 + (4*a^3*b*d^3)/5 + (18*a^2*b^2*c*d^2)/5 + (12*a*b^3*c^2*d)/5 ) + a^4*c^3*x + (b^4*d^3*x^8)/8 + (a^3*c^2*x^2*(3*a*d + 4*b*c))/2 + (b^3*d ^2*x^7*(4*a*d + 3*b*c))/7 + a^2*c*x^3*(a^2*d^2 + 2*b^2*c^2 + 4*a*b*c*d) + (b^2*d*x^6*(2*a^2*d^2 + b^2*c^2 + 4*a*b*c*d))/2